package com.wt.dwh.samples.flink;

public class UserClickEvent {

    private String userName;
    private String url;
    private String sourceIp;
    private long timestamp;

    public UserClickEvent(){}

    public UserClickEvent(String userName, String url, String sourceIp, long timestamp) {
        this.userName = userName;
        this.url = url;
        this.sourceIp = sourceIp;
        this.timestamp = timestamp;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSourceIp() {
        return sourceIp;
    }

    public void setSourceIp(String sourceIp) {
        this.sourceIp = sourceIp;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return "UserClickEvent{" +
                "userName='" + userName + '\'' +
                ", url='" + url + '\'' +
                ", sourceIp='" + sourceIp + '\'' +
                ", timestamp=" + timestamp +
                '}';
    }
}
